POV-Ray : Newsgroups : povray.advanced-users : Object Oriented POV code : Re: Object Oriented POV code Server Time
29 Jul 2024 12:23:39 EDT (-0400)
  Re: Object Oriented POV code  
From: Tek
Date: 22 Feb 2004 18:30:48
Message: <40393ba8$1@news.povray.org>
"Dan P" <dan### [at] yahoocom> wrote in message
news:4039335d$1@news.povray.org...
> Thank you, Warp.

Uh, I said that, not him.

> This has been a puzzle for me for some time now: why do so
> many programmers write such awful code?

It seems impossible for me to make a statement without people taking it too far!

I'm *not* saying all abstraction is evil and should be avoided, but I'm also
*not* saying everything should be abstracted as much as possible. I'm talking
about finding a balance between the two, according to the needs of your task.

There is never any excuse for writing code that is needlessly difficult to read,
such as many unproffessional coders like to do in the flawed belief that it
makes them look clever.

However, there is good reason to sometimes write code that makes it harder to
see the overall structure if doing so provides you with some other useful
information. Obviously a balance must be found and that balance is different for
different applications, but in my work it is useful to avoid a lot of
abstraction.

-- 
Tek
www.evilsuperbrain.com


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.